package com.guazai.project.model.dto.user;

import com.guazai.project.common.PageRequest;
import com.guazai.project.constant.CommonConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 用户查询请求
 *
 * @author guazai
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserQueryRequest extends PageRequest implements Serializable {

    /**
     * 用户昵称
     */
    private String userName;

    /**
     * 简介
     */
    private String userProfile;

    /**
     * 用户角色：user/admin/ban
     */
    private String userRole;

    /**
     * 当前页号
     */
    private long current = CommonConstant.DEFAULT_PAGEQUERY_CURRENT;

    /**
     * 页面大小
     */
    private long pageSize = CommonConstant.DEFAULT_PAGEQUERY_PAGESIZE;

    private static final long serialVersionUID = 1L;
}